package 周六;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

public class ISRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("c.txt");
        InputStreamReader isr=new InputStreamReader(fis);
        int a;
        while ((a=isr.read())!=-1){
            System.out.println((char) a);
        }
    }
}
